package com.inetools.gwt.gajaxs.client;

import com.google.gwt.core.client.JsArray;


/**
 * Data model (JavaScriptObject) class for json object returned by google calendar data API
 */
public class GCalenderFeedData extends GDataEventKindFeedData {
	// Class definitions for sub elements of entry element ----------------------------------------
	public static class Entry extends GDEventEntry {
		protected Entry() {
			super();
		}
		
		public final native String getAnyoneCanAddSelf() /*-{
			return this.gCal$anyoneCanAddSelf.value;
		}-*/;
		public final native String getGuestsCanInviteOthers() /*-{
			return this.gCal$guestsCanInviteOthers.value;
		}-*/;
		public final native String getGuestsCanModify() /*-{
			return this.gCal$guestsCanModify.value;
		}-*/;
		public final native String getGuestsCanSeeGuests() /*-{
			return this.gCal$guestsCanSeeGuests.value;
		}-*/;
		public final native int getSequence() /*-{
			return this.gCal$sequence.value;
		}-*/;
		public final native String getUid() /*-{
			return this.gCal$uid.value;
		}-*/;
	}
	// --------------------------------------------------------------------------------------------
	
	protected GCalenderFeedData() {
	}
	
	public final native String getTimeZone() /*-{
		return this.feed.gCal$timezone.value;
	}-*/;
	public final native int getTimesCleaned() /*-{
		return this.feed.gCal$timesCleaned.value;
	}-*/;
	public final native JsArray<Entry> getEntries() /*-{
		return this.feed.entry;
	}-*/;
} // protected class GCalenderFeed extends JavaScriptObject

